﻿using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using YYTea.MOdel.Model;

namespace YYTea.ORM
{
    public class YYTeaContext : IdentityDbContext<UserInfo>
    {
        public YYTeaContext(DbContextOptions<YYTeaContext> options) : base(options)
        {

        }
        public DbSet<Product> Products { get; set; }
        public DbSet<Order> Orders { get; set; }
        public DbSet<UserInfo> UserInfos { get; set; }
        public DbSet<ShoppingCar> ShoppingCars { get; set; }
        public DbSet<Role> Role { get; set; }
        public DbSet<UserRole> UserRole { get; set; }




    }
}
